package com.nt.train.service.impl;
import com.nt.train.config.properties.MinioOssProperties;
import com.nt.train.service.OssService;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hlf
 * @version 1.0
 * @date 2022/8/4 13:51
 */
public class MinioServiceImpl implements OssService {

    private  final MinioOssProperties minioOssProperties ;

    public MinioServiceImpl(MinioOssProperties minioOssProperties){
        this.minioOssProperties = minioOssProperties ;
    }

    @Override
    public String upload(MultipartFile file) {
        return null;
    }

    @Override
    public Map<String, Object> readProperties() {
        Map<String, Object>  readMap  = new HashMap<>();
        readMap.put("minioData",minioOssProperties);
        return  readMap ;
    }
}
